/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pro.dao;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Helmut
 */
public class Dbase {

    public Connection conn;
    public void init_mysql() {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/mydb",
                    "root", "root");
        } catch (Exception e) {
            System.out.println("Fallo la conexion");
            e.printStackTrace();
        }

    }
}
